﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WorkGroup_Default : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        if (Server.UrlEncode(Request.QueryString["controller"]) != null)
        {
            string controller = Server.UrlEncode(Request.QueryString["controller"]);
             
            Control control = LoadControl(controller + ".ascx");
            
            PlaceHolder1.Controls.Add(control);
        }
        else
        {
            Control control = LoadControl("List.ascx");
          
            PlaceHolder1.Controls.Add(control);
        }
        base.OnInit(e);
    }
}

